package com.asset.dispoal.department.service.converter;


import com.asset.dispoal.department.domain.db.entity.SysDepartmentDo;
import com.asset.dispoal.department.dto.DepartmentRequest;
import com.asset.dispoal.department.dto.DepartmentResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/1/27$
 */
@Mapper
public interface DepartmentConverter {

    DepartmentConverter INSTANCE = Mappers.getMapper(DepartmentConverter.class);

    SysDepartmentDo reqToDo(DepartmentRequest request);

    List<DepartmentResponse> doToRes(List<SysDepartmentDo> departmentDoList);
}
